package com.lyd.mapper;

import com.lyd.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface UserMapper {
    //保存和更新用户数据
    void saveOrUpdateUser(User user);

    //删除用户
    void deteleUser(User user);

    //根据id查询用户
    User getUserById(Long id);

    //获取用户列表
    List<User> getAllUser();
}
